package com.example.aircraftticketingsystemserver.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.aircraftticketingsystemserver.entity.Menu;
import com.example.aircraftticketingsystemserver.mapper.MenuMapper;
import com.example.aircraftticketingsystemserver.service.IMenuService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Transactional
@Service
public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu> implements IMenuService {
    @Resource
    private MenuMapper menuMapper;
    @Override
    public List<Menu> getMenuTree() {
        return menuMapper.getMenuList();
    }
}
